//
// Created by Alex on 2021/12/1.
//

#ifndef GEOMAP_GEOLAYER_H
#define GEOMAP_GEOLAYER_H
#include "GeoObject.h"
#include "QList"
#include "QString"
#include "QMap"
class GeoLayer {
public:
    GeoLayer();
    void addObject(GeoObject *);
    void addProperties(QString,QVariant);
    GeoObject* getObjByProperty(QString, QString);
    QVariant getPropertiesValue(QString key);
    int getObjSize();
    GeoObject *getObject(int index);
private:
    QList<GeoObject *> objs;
    QMap<QString,QVariant> properties;
};


#endif //GEOMAP_GEOLAYER_H
